import Vue from 'vue'
import Router from 'vue-router'
import Admin from '@/components/Admin'
import Login from '@/components/Login'
import Rules from '@/components/Rules'
import Transaction from '@/components/Transaction'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/rules',
      name: 'Rules',
      component: Rules
    },
    {
      path: '/transaction/:userName',
      name: 'Transaction',
      component: Transaction
    },
    {
      path: '/admin',
      name: 'Admin',
      component: Admin
    }
  ]
})
